package com.ruoyi.qualityControl.service.impl;

import com.ruoyi.qualityControl.domain.TimeType;
import com.ruoyi.qualityControl.mapper.TimeTypeMapper;
import com.ruoyi.qualityControl.service.TimeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeTypeServiceImpl implements TimeTypeService {
    @Autowired
    private TimeTypeMapper timeTypeMapper;

    @Override
    public List<TimeType> settleAll() {
        return timeTypeMapper.selectAll();
    }

    @Override
    public Boolean insert(TimeType timeType) {
        return timeTypeMapper.insert(timeType);
    }

    @Override
    public Boolean update(TimeType timeType) {
        return timeTypeMapper.update(timeType);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return timeTypeMapper.deleteById(id);
    }
}
